<?php

    class Admin_IndexController extends Zend_Controller_Action {

        public function init() {
            /* Initialize action controller here */
        }

        public function indexAction() {
            // action body
            if (session_id() == '') {
                //header("location:/aitishop/admin/login");
            } else {
                $customer = new Admin_Model_CustomerMapper();
                $customerCount = $customer->_countAll();
                $this->view->assign('customerStats', $customerCount);
            }

        }

        public function loginAction() {
            $this->_helper->layout()->disableLayout();
        }

    }
